package com.example.springboot.demo.service;

import com.example.springboot.demo.mapper.MassageMapper;
import com.example.springboot.demo.model.MassageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MassageService {
    @Autowired
    private MassageMapper massageMapper;

    public void insert(MassageInfo massageInfo) {
        massageMapper.insert(massageInfo);
    }

    public List<MassageInfo> selectAll() {
        return massageMapper.selectAll();
    }
}
